/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.dcpApplication.question4.adpApp.adpCorrection.newMydetails.detailConfig;

import za.ac.cput.dcpApplication.question4.adpApp.adpCorrection.newMydetails.detailsImpl.Password;
import za.ac.cput.dcpApplication.question4.adpApp.adpCorrection.newMydetails.detailsImpl.Name;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.dcpApplication.question4.adpApp.adpCorrection.newMydetails.LoginInfo;

/**
 *
 * @author spheshie
 */
@Configurable
public class MyDetailsConfig {
    
    @Bean(name = "dname")
    public LoginInfo myname(){
        return new Name(); 
    }
    
    @Bean(name = "pass")
    public LoginInfo paswrd(){
        return new Password();
    
    }
}
